﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace UIWindows.Models.ParameterModels
{
    public class BaseParameteModel : INotifyPropertyChanged
    {
        public event PropertyChangedEventHandler? PropertyChanged;
        [Description("ID")]
        public int ID { get; set; }
        /// <summary>
        /// 交互名称
        /// </summary>
        [Description("交互名称")]
        public string Name { get; set; } = string.Empty;
        /// <summary>
        /// PLC地址
        /// </summary>
        [Description("PLC地址")]
        public string PLCAddress { get; set; } = string.Empty;
        /// <summary>
        /// 描述
        /// </summary>
        [Description("描述")]
        public string Desc { get; set; } = string.Empty;
        /// <summary>
        /// 数据类型
        /// </summary>
        [Description("数据类型")]
        public string DataType { get; set; } = string.Empty;
        /// <summary>
        /// 是否启用
        /// </summary>
        [Description("是否启用")]
        public bool IsEnable { get; set; } = true;
    }
}

